<template>
  <div id="app">
    <router-view/>
    <van-tabbar route v-show="show">
  <van-tabbar-item icon="home-o" to="/home" >首页</van-tabbar-item>
  <van-tabbar-item icon="orders-o" to="/About">专题</van-tabbar-item>
  <van-tabbar-item icon="apps-o" to="/fel">分类</van-tabbar-item>
  <van-tabbar-item icon="cart-o" to="/gwc">购物车</van-tabbar-item>
  <van-tabbar-item icon="friends-o" to="/my">我的</van-tabbar-item>
</van-tabbar>
  </div>
</template>
<script>
export default {
  data() {
    return {
      show:true
      
    }
  },
  watch: {
    $route:function(c,i){
      if(c.path=='/fen'||c.path=='/xq'){
        this.show=false
      }else{
        this.show=true
      }
    }
    
  },
  
}
</script>

<style lang="scss">
*{
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

</style>
